﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WCFClient
{
    class Program
    {
        static void Main(string[] args)
        {
            NorthwindServiceReference.NorthwindEntities proxy = new NorthwindServiceReference.NorthwindEntities(
                new Uri("http://localhost:9956/NorthwindODataService.svc/"));

            var customers = from c in proxy.Customers select c;

            foreach (var c in customers)
            {
                Console.WriteLine("Name:"+ c.ContactName);
            }

            Console.ReadLine();

        }
    }
}
